﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using Newtonsoft.Json;
using ZLWeb.WebApiEntityBase;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZL.CRM.CommonEntity.AccOpr
{
    public class QianzhYwCore : YwCoreCommon
    {

        /// <summary>
        ///  操作记录：消费金额
        /// </summary>
        public decimal Oprxfje { get; set; }

        /// <summary>
        ///  提交json(da忽略)
        /// </summary>
        public string Oprjson { get; set; }


        /// <summary>
        ///  (换卡执行)新凭证号
        /// </summary>
        public string Newcardno { get; set; }

        /// <summary>
        ///  (换卡执行)新凭证类型：1-实体卡卡号 2-微信appid+"|"+openid(仅线上系统使用) 3-支付宝(仅线上系统使用)  4-手机号 5-账户id加密值（暂无）
        /// </summary>
        public short Newctype { get; set; }

        /// <summary>
        ///  (换卡执行)新卡卡种id
        /// </summary>
        public int Newcgsid { get; set; }


        public long RemoveHbaccid { get; set; }

    }
    public class QianzhYwCoreMapper : ClassMapper<QianzhYwCore>
    {
        public QianzhYwCoreMapper()
        {
            Table("#YwCore");
            Map(f => f.Oprcardno).Column("Oprcardno");
            Map(f => f.Oprctype).Column("Oprctype");
            Map(f => f.Oprtime).Column("Oprtime");
            Map(f => f.Oprbrid).Column("Oprbrid");
            Map(f => f.Oprbrname).Column("Oprbrname");
            Map(f => f.Oprxfje).Column("Oprxfje");
            Map(f => f.Oprsno).Column("Oprsno");
            Map(f => f.Oprjson).Column("Oprjson");
            Map(f => f.Newcardno).Column("Newcardno");
            Map(f => f.Newctype).Column("Newctype");
            Map(f => f.Newcgsid).Column("Newcgsid");
            Map(f => f.RemoveHbaccid).Column("RemoveHbaccid");
            
        }

    }
 
}
